//
//  Book.m
//  03-NSStringAndArrayHomeWork
//
//  Created by LL.F on 16/7/6.
//  Copyright © 2016年 LL.F. All rights reserved.
//

#import "Book.h"

@implementation Book

- (instancetype)initWithName:(NSString *)name Price:(CGFloat)price
{

    self = [super init];
    if (self) {
        _name = name;
        _price = price;
    }
    return self;
}

+ (instancetype)bookWithName:(NSString *)name Price:(CGFloat)price
{

    return [[Book alloc] initWithName:name Price:price];
            
}

@end
